#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    //设置按钮的tooltips
    ui->pushButton_yes->setToolTip("对的对的");
    ui->pushButton_yes->setToolTipDuration(300000);
    ui->pushButton_no->setToolTip("对吗");
    ui->pushButton_no->setToolTipDuration(700000);
}

Widget::~Widget()
{
    delete ui;
}

